import chalk = require("chalk");
import { version } from "os";
import { EnumProjectType, EnumPublishType, IProjectVo, IPublishVo } from "../data/Config";
import { packGame } from "../publish/PublishFactory";
let publishVo: IPublishVo = {};
publishVo.name = '测试123';
publishVo.type = EnumPublishType.IOS;
publishVo.config = `{\"CdnUrl\":\"https://h5-resource.91y.com/tinyGame/gameres/qtdl3D/web/0.0.1/\",\"version\":\"0.0.1\"}`;
//publishVo.content = { "name": "末日突围", "appId": "ym.mrtw.huawei", "versionCode": 1001, "minSdkVersion": "1075", "cert": "F:\\Work\\CES\\release", "icon": "F:\\Work\\CES\\web\\图标视屏.png" }
publishVo.fromPath = 'F:\\LayaProject\\Fish\\oceanpack\\bin';
publishVo.toPath = 'F:\\LayaOutTest\\ios';
publishVo.preVersion = '0.0.1';
publishVo.localRes = true;
let program: IProjectVo = { name: 'test', type: EnumProjectType.Laya2, dir: 'F:\\LayaProject\\test2' };
packGame(publishVo, program, '0.0.1', true, null, null)